coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: role
  displayName: Role
  pluralName: roles
  displayPluralName: Roles
  dataSource: main
  tableName: sec_roles
  titleAttribute: role
  description: Roles
  core: true
  performDdl: false
  icon: KeyOutlined
spec:
  attributes:
    username:
      type: string
      columnName: username
      displayName: User
      description: User
      required: true
      length: 50
      colWidth: 200
    role:
      type: string
      columnName: role
      displayName: Role
      description: Role
      required: true
      length: 50
      colWidth: 200
  indexes:
    sec_roles_username_role_uk:
      columns:
        - username
        - role
      unique: true
